"""Search_omega objects"""

from mydb import firebird, postgre, oracle
from xm.object import object


class basic(object):
	"""This is a basic search_omega object"""
	#print (self.__doc__)
	#beginning of class suite
	def __init__(self, name, map, fields_src, fields_dest, name_src, name_dest, query_src, query_dest):
		super(basic, self).__init__('x', 'asu', 'so', name, [firebird, None, None, None], [oracle, None, None, None], [postgre, 'django_xm', None, None], map, fields_src, fields_dest, name_src, name_dest, query_src, query_dest)
		self.fields_inter_src=[['xm_id','integer','NOT NULL','xm_id']]+fields_src
		self.fields_inter_dest=[['xm_id','integer','NOT NULL','xm_id']]+fields_dest
		self.inter_src=inter_src(self.name_tb_src, inter, self.fields_inter_src)
		self.inter_dest=inter_dest(self.name_tb_dest, inter, self.fields_inter_dest)

	#end of class object suite

class articles(basic):
	"""This is a search_omega object: Articles"""
	#print (self.__doc__)
	#beginning of class suite
	def __init__(self, map, fields_src, fields_dest, name_src, name_dest, query_src, query_dest):
		super(articles, self).__init__('art', map, fields_src, fields_dest, name_src, name_dest, query_src, query_dest)

	#end of class object suite

